#include "global.cpp"
#include "file.cpp"
#include "student information.cpp"
#include "class information.cpp"

void main()
{
	load();
	MainMenu();
}

void MainMenu()
{
	int key;
	while(key!=4)
	{
   	system("cls");
		printf("\n Menu");
		printf("\n --------------------- ");
		printf("\n 1. Class Information");
		printf("\n 2. Student Information");
		printf("\n 3. Mark Information");
		printf("\n 4. Exit");
		printf("\n --------------------- ");
		printf("\n Select the option (1-4):");	fflush(stdin); scanf("%d",&key);

		switch(key)
		{
		case 1:info_class();
			break;
		case 2:info_student();
			break;
		case 3:
			break;
		case 4:quit();
			break;
		default:printf("invalid selection");
		}
	}
}
